riscv: dts: spacemit: Add USB2 PHY node for K1
authorZe Huang <huang.ze@linux.dev>
Sun, 11 Jan 2026 06:41:02 +0000 (14:41 +0800)
committerSalvatore Bonaccorso <carnil@debian.org>
Thu, 12 Mar 2026 12:28:10 +0000 (13:28 +0100)
Origin: https://git.kernel.org/linus/9d591fef025d5008f23ab339a10006b151150578

K1's DWC3 USB 3.0 controller requires two separate PHYs to function:
the USB 3.0 combophy (for SuperSpeed) and a USB 2.0 PHY (for High-Speed,
Full-Speed, etc.).

Add node for this second USB 2.0 PHY (usbphy2).

Tested-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Ze Huang <huang.ze@linux.dev>
Reviewed-by: Yixun Lan <dlan@gentoo.org>
Link: https://lore.kernel.org/r/20260111-k1-usb3dts-v2-v3-1-f5ebd546e904@linux.dev
Signed-off-by: Yixun Lan <dlan@gentoo.org>
Gbp-Pq: Topic features/riscv64
Gbp-Pq: Name riscv-dts-spacemit-Add-USB2-PHY-node-for-K1.patch

arch/riscv/boot/dts/spacemit/k1.dtsi

index 86d1db14e2ee498613542acc3e60789d54762017..b44149f4f076c98413135a3aa78f6438442e0b61 100644 (file)
                        status = "disabled";
                };
 
+               usbphy2: phy@c0a30000 {
+                       compatible = "spacemit,k1-usb2-phy";
+                       reg = <0x0 0xc0a30000 0x0 0x200>;
+                       clocks = <&syscon_apmu CLK_USB30>;
+                       #phy-cells = <0>;
+                       status = "disabled";
+               };
+
                combo_phy: phy@c0b10000 {
                        compatible = "spacemit,k1-combo-phy";
                        reg = <0x0 0xc0b10000 0x0 0x1000>;